from selenium.webdriver.common.by import By
from time import sleep
from public.Tools.Backend import Backend


class LoginAdmin(Backend):
    def login_admin(self):
        # 登录流程
        self.dp.send_keys((By.XPATH,'/html/body/form/table/tbody/tr/td[2]/table/tbody/tr[1]/td[2]/input'),'admin')
        self.dp.send_keys((By.XPATH,'/html/body/form/table/tbody/tr/td[2]/table/tbody/tr[2]/td[2]/input'),'admin123')
        self.dp.click((By.XPATH,'/html/body/form/table/tbody/tr/td[2]/table/tbody/tr[4]/td[2]/input'))
        sleep(5)
